﻿-var exceptions = (ViewData["Exceptions"] as List<ScheduleDayException>)
%h3=string.Format("Исключения за {0} год",((DateTime)ViewData["Date"]).ToString("yyyy"))
-if(exceptions.Count > 0)
  %ul.items
    -foreach(var e in exceptions)
      %li
        %a{href="#",onclick=string.Format("return editDayException({0});",e.Id)}
          =e.Date.ToString("dd.MM")
.spacer10
%a.btncreate{href="#",onclick="return createDayException()"} <img src="img/buttons/create.gif" title="Создать исключение" width="73" height="23"/>